﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using DreamCube.Foundation.Basic.Utility;

namespace DreamCube.Websites.LogWeb.Pages
{
    public partial class ClearLogs : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                String logFilePath = Request.QueryString["logPath"];
                MyLog log = new MyLog(logFilePath);
                log.ClearLog();
                Response.Write("");
            }
            catch (Exception ex)
            {
                Response.Write("清除日志出错：" + ex.Message);
            }
            finally
            {
                Response.End();
            }
        }
    }
}